

import Layout from '@/layout'

export default {
  path: '/',
  component: Layout,
  redirect: '/manufacture',
  children: [{
    path: '/manufacture',
    component: () => import('@/views/manufacture/index'),
    children: [{
      path: 'equipment/:scope',
      component: () => import('@/views/management/equipment/index'),
      name: 'equipment',
      meta: {
        defaultActive: '/manufacture/equipment'
      }
    }, {
      path: 'bom/:scope',
      component: () => import('@/views/manufacture/bom/index'),
      name: 'bom',
      meta: {
        defaultActive: '/manufacture/bom'
      }
    }, {
      path: 'technique/:scope',
      component: () => import('@/views/manufacture/technique/index'), name: 'technique',
      meta: {
        defaultActive: '/manufacture/technique'
      }
    }, {
      path: 'template/:scope',
      component: () => import('@/views/manufacture/template/index'),
      name: 'template',
      meta: {
        defaultActive: '/manufacture/template'
      }
    }, {
      path: 'template_design/:scope/:recordTemplateId',
      component: () => import('@/views/manufacture/template/components/design'),
      name: 'template_design',
      meta: {
        defaultActive: '/manufacture/template_design'
      }
    }, {
      path: 'order',
      component: () => import('@/views/manufacture/order/index'),
      name: 'order',
      meta: {
        defaultActive: '/manufacture/order'
      }
    }, {
      path: 'task',
      component: () => import('@/views/manufacture/task/index'),
      name: 'task',
      meta: {
        defaultActive: '/manufacture/task'
      }
    }, {
      path: 'result',
      component: () => import('@/views/manufacture/result/index'),
      name: 'result',
      meta: {
        defaultActive: '/manufacture/result'
      }
    }, {
      path: 'manufactureHandOrder',
      component: () => import('@/views/manufacture/manufactureHandOrder'),
      name: 'manufactureHandOrder',
      meta: {
        defaultActive: '/manufacture/manufacture_handOrder'
      }
    },
    {
      path: 'manufactureTask',
      component: () => import('@/views/manufacture/manufactureTask'),
      name: 'manufactureTask',
      meta: {
        defaultActive: '/manufacture/manufactureTask'
      }
    }]
  }]
}
